|
![](/i/fill.gif) |
Can someone please explain to me why I ***can't*** do this?
CODE >>>>
#declare myVector = <1,2>
atan2(myVector.y,myVector.x)
<<<< CODE
Parse Error: Expected 'operand', uv vector identifier found instead
But why I ***CAN*** do this?
CODE >>>>
#declare myVector = <1,2>;
#declare xValue = myVector.x;
#declare yValue = myVector.y;
atan2(yValue,xValue)
<<<< CODE
Works just fine!
Isn't myVector.x a plain float value that can be used wherever
a float is required?
slehar
Post a reply to this message
|
![](/i/fill.gif) |